/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
 * Copyright (c) 2020 TELEMATICS LAB, Politecnico di Bari
 *
 * This file is part of 5G-air-simulator
 *
 * 5G-air-simulator is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation;
 *
 * 5G-air-simulator is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with 5G-air-simulator; if not, see <http://www.gnu.org/licenses/>.
 *
 * Author: Telematics Lab <telematics-dev@poliba.it>
 */


#ifndef RADIO_BEARER_INSTANCE_H_
#define RADIO_BEARER_INSTANCE_H_

class NetworkNode;
class ClassifierParameters;
class Application;
class MacQueue;
class QoSParameters;
class Packet;
class RlcEntity;

class RadioBearerInstance
{
public:
  RadioBearerInstance();
  virtual ~RadioBearerInstance();

  void Destroy (void);

  void SetSource (NetworkNode* src);
  void SetDestination (NetworkNode* dst);
  NetworkNode* GetSource (void);
  NetworkNode* GetDestination (void);

  void SetRlcEntity (RlcEntity *rlc);
  RlcEntity* GetRlcEntity (void);

  void SetClassifierParameters (ClassifierParameters* cp);
  ClassifierParameters* GetClassifierParameters (void);

  void SetQoSParameters (QoSParameters *parameters);
  QoSParameters* GetQoSParameters (void) const;

  enum BearerQoSType
  {
    BEARER_TYPE_GBR, BEARER_TYPE_NGBR
  };

  void SetBearerQoSType (BearerQoSType bearerQoSType);
  BearerQoSType GetBearerQoSType (void) const;

private:
  NetworkNode* m_src;
  NetworkNode* m_dst;

  ClassifierParameters* m_classifierParameters;

  RlcEntity *m_rlc;

  //QoS
  QoSParameters *m_qosParameters;
  BearerQoSType m_type;

};

#endif /* RADIO_BEARER_INSTANCE_H_ */
